HAL PSSI constants migration ¶
This section provides information about the HAL PSSI constants migration.
HAL PSSI bits and lines configurations constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_PSSI_8LINES
#define HAL_PSSI_16LINES
#define HAL_PSSI_8BITS
#define HAL_PSSI_16BITS
#define HAL_PSSI_32BITS
|
typedef enum
{
HAL_PSSI_BUS_WIDTH_8LINE,
HAL_PSSI_BUS_WIDTH_16LINE
} hal_pssi_bus_width_t;
typedef enum
{
HAL_PSSI_DATA_WIDTH_8BIT,
HAL_PSSI_DATA_WIDTH_16BIT,
HAL_PSSI_DATA_WIDTH_32BIT
} hal_pssi_data_width_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL PSSI data direction modes constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_PSSI_BIDIRECTIONAL
#define HAL_PSSI_UNIDIRECTIONAL
|
Removed in HAL2, used internally in HAL1 and do not affect user level operation. |
HAL PSSI data enable polarity constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_PSSI_DEPOL_ACTIVE_LOW
#define HAL_PSSI_DEPOL_ACTIVE_HIGH
|
typedef enum
{
HAL_PSSI_DATA_ENABLE_POLARITY_LOW,
HAL_PSSI_DATA_ENABLE_POLARITY_HIGH
} hal_pssi_data_enable_polarity_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL PSSI data enable control modes constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_PSSI_DE_ENABLE
#define HAL_PSSI_DE_MAP_ENABLE
#define HAL_PSSI_DE_RDY_ALT_ENABLE
#define HAL_PSSI_DE_RDY_DISABLE
#define HAL_PSSI_MAP_DE_BIDIR_ENABLE
#define HAL_PSSI_MAP_RDY_BIDIR_ENABLE
#define HAL_PSSI_RDY_ENABLE
#define HAL_PSSI_RDY_MAP_ENABLE
|
typedef enum
{
HAL_PSSI_CONTROL_SIGNAL_DE_ENABLE,
HAL_PSSI_CONTROL_SIGNAL_DE_MAP_ENABLE,
HAL_PSSI_CONTROL_SIGNAL_DE_RDY_ALT_ENABLE,
HAL_PSSI_CONTROL_SIGNAL_DE_RDY_DISABLE,
HAL_PSSI_CONTROL_SIGNAL_MAP_DE_BIDIR_ENABLE,
HAL_PSSI_CONTROL_SIGNAL_MAP_RDY_BIDIR_ENABLE,
HAL_PSSI_CONTROL_SIGNAL_RDY_ENABLE,
HAL_PSSI_CONTROL_SIGNAL_RDY_MAP_ENABLE
} hal_pssi_control_signal_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL PSSI error codes constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_PSSI_ERROR_DMA
#define HAL_PSSI_ERROR_NONE
#define HAL_PSSI_ERROR_UNDER_RUN
#define HAL_PSSI_ERROR_OVER_RUN
#define HAL_PSSI_ERROR_NOT_SUPPORTED
#define HAL_PSSI_ERROR_TIMEOUT
#define HAL_PSSI_ERROR_INVALID_CALLBACK
|
#define HAL_PSSI_ERROR_DMA
#define HAL_PSSI_ERROR_NONE
#define HAL_PSSI_ERROR_UNDER_RUN
#define HAL_PSSI_ERROR_OVER_RUN
Removed; these kinds of logical errors are reported by direct function return. |
Related concept:
HAL PSSI edge detection modes constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_PSSI_FALLING_EDGE
#define HAL_PSSI_RISING_EDGE
|
typedef enum
{
HAL_PSSI_CLOCK_POLARITY_RX_RISING_TX_FALLING_EDGE,
HAL_PSSI_CLOCK_POLARITY_RX_FALLING_TX_RISING_EDGE
} hal_pssi_clock_polarity_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL PSSI ready signal polarity constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define HAL_PSSI_RDYPOL_ACTIVE_LOW
#define HAL_PSSI_RDYPOL_ACTIVE_HIGH
|
typedef enum
{
HAL_PSSI_READY_POLARITY_LOW,
HAL_PSSI_READY_POLARITY_HIGH
} hal_pssi_ready_polarity_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL PSSI control register bit width options constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_CR_8BITS
#define PSSI_CR_16BITS
|
typedef enum
{
HAL_PSSI_BUS_WIDTH_8LINE,
HAL_PSSI_BUS_WIDTH_16LINE
} hal_pssi_bus_width_t;
|
Related concepts:
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL PSSI control register DMA enable/disable constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_CR_DMA_ENABLE
#define PSSI_CR_DMA_DISABLE
|
Removed in HAL2, used internally in HAL1 and do not affect user level operation. DMA is enabled by default when using HAL PSSI transmit and receive DMA functions. DMA is disabled by default when using HAL PSSI transmit and receive functions. |
HAL PSSI control register output enable for input/output constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_CR_OUTEN_INPUT
#define PSSI_CR_OUTEN_OUTPUT
|
Removed in HAL2, used internally in HAL1 and do not affect user level operation. |
HAL PSSI FIFO flags constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_FLAG_RTT1B
#define PSSI_FLAG_RTT4B
|
#define HAL_PSSI_FLAG_RTT1B
#define HAL_PSSI_FLAG_RTT4B
|
Related concept:
HAL PSSI status flags constants ¶
In HAL1, these defines have been used by the
HAL_PSSI_GET_FLAG()
macro.
In HAL2, these defines are no longer available.Instead, dedicated API functions are provided to retrieve the status flags.
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_FLAG_OVR_RIS
#define PSSI_FLAG_OVR_MIS
|
Removed in HAL2, use the following functions instead: HAL_PSSI_IsActiveFlag_OVR_UDR_RIS()
HAL_PSSI_IsActiveFlag_OVR_UDR_MIS()
|
HAL PSSI mask Flags constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_FLAG_MASK
|
Removed in HAL2, used internally in HAL1 and do not affect user level operation. |
HAL PSSI maximum number of bytes size constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_MAX_NBYTE_SIZE
|
Removed in HAL2, used internally in HAL1 and do not affect user level operation. |
HAL PSSI transmit timeout constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PSSI_TIMEOUT_TRANSMIT
|
Removed in HAL2, as it is not needed by the user. Users can specify the timeout value directly as a parameter to APIs that require it. |